package com.lyj.mode.combination;

/**
 * 测试类
 * @author:liyajie
 * @createTime:2022/2/28 16:10
 * @version:1.0
 */
public class Test {
    public static void main(String[] args) {
        // 服装店
        Component store = new Store("服装店","服装店");

        // 专卖店
        Component brandStore1 = new BrandStore("李宁服装专卖店","李宁服装专卖店");
        Component brandStore2 = new BrandStore("361服装专卖店","361服装专卖店");

        // 运动装
        Component sportswear1 = new Sportswear("运动装","运动装");
        Component sportswear2 = new Sportswear("休闲装","休闲装");

        brandStore1.add(sportswear1);
        brandStore2.add(sportswear2);

        store.add(brandStore1);
        store.add(brandStore2);
        store.show();
    }
}
